package cn.iocoder.yudao.module.system.api.auth;

import cn.iocoder.yudao.framework.security.core.LoginUser;
import cn.iocoder.yudao.module.system.service.auth.AdminAuthService;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;

/**
 * 在线用户 Session API 实现类
 *
 * @author 芋道源码
 */
@Service
@Validated
public class AdminAuthApiImpl implements AdminAuthApi{
    @Resource
    private AdminAuthService adminAuthService;
    @Override
    public LoginUser refreshLoginUserCache(String token, LoginUser loginUser) {
        return adminAuthService.refreshUserCache(token,loginUser);
    }
}
